package com.example.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;


/**
 * 物资入库
 *
 * @author wy
 * @since 2024-07-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("inbound")
@ApiModel("物资入库")
public class Inbound implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "物资入库id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "物资编号")
    private Integer materialId;

    @TableField(exist = false)
    private String materialName;

    @ApiModelProperty(value = "仓库编号")
    private Integer warehouseId;

    @TableField(exist = false)
    private String warehouseName;

    @ApiModelProperty(value = "入库时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime inboundTime;

    @ApiModelProperty(value = "入库数量")
    private Integer inboundQuantity;

    @ApiModelProperty(value = "入库备注")
    private String remark;

    @ApiModelProperty(value = "乐观锁版本号")
    @Version
    @TableField(value = "version", fill = FieldFill.INSERT)
    private Integer version;

}
